//
//  DBReadInfoLogc.h
//  KidReading
//
//  Created by telen on 15/12/16.
//  Copyright © 2015年 刘赞黄Telen. All rights reserved.
//

#import "DBHelper.h"
#import <UIKit/UIKit.h>
//删除图书记录
extern  NSString* const RKey_bookDel;

//图书阅读模式记录，mode: forme 为我读，ido 我要读
extern  NSString* const RKey_bookReadMode;

//页面操作 type：speed 页面语速调节，mode：normal 正常，fast 快速，slow 慢速
//图书页面记录，type: enter 进入，audio播放页面语音,trans 翻译
//页面操作 type：pinyin 页面拼音，mode:on 开，off 关
extern  NSString* const RKey_pageOperation;

//页面字词操作  type: show 显示，graph 笔画，audio 字词读音
extern  NSString* const RKey_pageWord;

//图书talk操作  type: video 播放talk,share 分享talk
extern  NSString* const RKey_talkOperation;

//应用相关操作  type: enter 进入应用,quit 退出应用
extern  NSString* const RKey_app;
//流式阅读器阅读进度
extern  NSString* const RKey_bookProgress;

extern  NSString* const RMode_forme;
extern  NSString* const RMode_ido;
extern  NSString* const RMode_over;
extern  NSString* const RMode_photo;
extern  NSString* const RMode_diyAudio;

extern  NSString* const RMode_on;
extern  NSString* const RMode_off;

extern  NSString* const RMode_normal;
extern  NSString* const RMode_fast;
extern  NSString* const RMode_slow;

extern  NSString* const RType_enter;
extern  NSString* const RType_show;
extern  NSString* const RType_graph;
extern  NSString* const RType_audio;
extern  NSString* const RType_trans;
extern  NSString* const RType_quit;
extern  NSString* const RType_followRead;
extern  NSString* const RType_hanzt;

extern  NSString* const RType_speed;
extern  NSString* const RType_pinyin;

extern  NSString* const RType_video;
extern  NSString* const RType_share;

@interface DBHelper(DBReadInfoLogc)

- (void)addReadInfo_bookdel:(NSInteger)bookId;
- (void)addReadInfo_bookReadMode:(NSInteger)bookId mode:(NSString*)mode;

- (void)addReadInfo_pageOperation:(NSInteger)bookId pageIndex:(NSInteger)pageindex type:(NSString*)type mode:(NSString*)mode;

- (void)addReadInfo_pageWord:(NSInteger)bookId pageIndex:(NSInteger)pageindex type:(NSString*)type word:(NSString*)word;
//流式阅读器阅读进度统计
- (void)addFlowReadProgressInfoWithBookId:(NSInteger)bookId ReadProgress:(CGFloat)readProgress;

- (void)addReadInfo_talkOperation:(NSInteger)bookId type:(NSString*)type;

- (void)addReadInfo_app_type:(NSString *)type;
//quiz数据统计
- (void)addQuizInfoWithQuizDict:(NSDictionary *)resultDict;

//
- (void)readInfo_Dicts_sendToNet;

@end
